
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>沃源、辽鞍OA-APP下载</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Pragma" content="no-cache">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
    <script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
    <script src="/dist/js/oa.js?t=54c6b89c"></script>
    <style type="text/css">
        body {
            font-family: "Microsoft Yahei","微软雅黑";
            color: #000000;
        }
        .container {
            width:100%;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            var is_weixin = (function () {
                var ua = navigator.userAgent.toLowerCase();
                if (ua.match(/MicroMessenger/i) == "micromessenger") {
                    return true;
                } else {
                    return false;
                }
            })();

            if ((navigator.userAgent.match(/(iPhone|iPod|ios)/i))) {
                if (is_weixin) {
                    $("#divWeChat").show();
                }
                else {
                    $("#divDownBtn").css("display", "none");
                    $("#divDownBtnIos").css("display", "block");
                }

            }
            else {
                window.onload = function () {
                    var ua = navigator.userAgent.toLowerCase();
                    if (ua.match(/MicroMessenger/i) != "micromessenger")
//                        console.log(StandardTaxRate())
                        location.href = StandardTaxRate() + "?m=" + Math.random();
                };

                if (is_weixin) {
                    $("#divWeChat").show();
                }
                else {
                    $("#divLogo").show();
                    $("#divDownBtn").show();
                }
            }
            $("#btnDown").bind("click", function () {
                if ((navigator.userAgent.match(/(iPhone|iPod|ios)/i)))
                {
                    $("#divDownBtn").css("display", "none");
                    $("#divDownBtnIos").css("display", "block");
                }
                else
//                    console.log(StandardTaxRate())
                    location.href = StandardTaxRate() + "?m=" + Math.random();
            });
        });


        function StandardTaxRate() {
            var appurl = "";
            $.ajax({
                url: server.ip + "/app/update/getVersion.json",
                type: "GET",
                async:false,
                success: function (r) {
                    appurl="http://office-auto.oss-cn-beijing.aliyuncs.com/app/apk/wy"+ r.data.sendData.versionName + ".apk"
                }
            });
            return appurl;
        }
    </script>

</head>
<body>
<div class="container" style="margin-top: 60px; text-align: center; display: none;" id="divLogo">
    <img src="/dist/img/ewm-wy.png" style="width:40%;margin:0 auto;" />
</div>
<div class="container" style="text-align: center; display: none;" id="divWeChat">
    <img src="/dist/img/down-right.png" style="width: 90%; margin: 0 auto;" />
</div>
<div class="container" style="text-align: center; margin-top: 80px; display: none; " id="divDownBtn">
    <input type="button" value="立即下载APP" class="btn" style="width: 90%; font-size: 18px; background-color:#ff6600; color: #fff; height: 45px; " id="btnDown" />
</div>
<div class="container" style="text-align: center; margin-top: 80px; display: none; " id="divDownBtnIos">
    <input type="button" value="开发中..." class="btn" style="width:90%;font-size:18px; background-color:#999; color:#fff; height:45px; " />
</div>
</body>
</html>
